<#import "/layout.html" as c>
    <#import "/list_layout.html" as list>
        <#assign alertList = []/>
        <@c.html title="Index">
        <!-- ================== 开始页面级CSS调用 ================== -->
        <link href="${pluginsRoot}bootstrap-wizard/css/bwizard.min.css" rel="stylesheet"/>
        <!-- 日历控件 -->
        <link href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/WdatePicker.css" rel="stylesheet"/>
        <link href="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/skin/default/datepicker.css" rel="stylesheet"/>
        <!-- ================== 结束页面级CSS调用 ================== -->
        <@list.html title="公告列表" subTitle="公告列表" alertList=alertList permi="sys:system:save" addBtn=true
        searchHint="请输入公告标题进行搜索">
        </@list.html>

        <@shiro.hasPermission name="sys:system:edit">
        <input type="hidden" id="systemNoticeEdit" value="1"/>
        </@shiro.hasPermission>
        <@shiro.hasPermission name="sys:system:publish">
        <input type="hidden" id="systemNoticePublish" value="1"/>
        </@shiro.hasPermission>
        <@shiro.hasPermission name="sys:system:back">
        <input type="hidden" id="systemNoticeBack" value="1"/>
        </@shiro.hasPermission>
        <@shiro.hasPermission name="sys:system:del">
        <input type="hidden" id="systemNoticeDel" value="1"/>
        </@shiro.hasPermission>

<!-- ================== 开始新增资讯模态窗口 ================== -->
<div class="modal fade" id="addModal" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title"> 新增资讯 <a class="btn btn-info btn-xs m-l-5" role="button" data-toggle="collapse" href="#OperationTips" aria-expanded="true" title="操作提示"><i class="fa fa-exclamation"></i> 提示 </a> </h4>
            </div>
            <div class="modal-body">
                <ul class="collapse in text-info p-b-10 p-l-15" role="tabpanel" id="OperationTips">
                    <li>资讯标题、资讯作者、资讯内容等为必填项，请根据表单提示信息正确输入选择。</li>
                </ul>
                <form class="form-horizontal form-bordered p-0" action="${adminRoot}systemNotice/json/add" id="addForm" method="post" autocomplete="off" data-parsley-validate="true">
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">标题<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" name="title" class="form-control" placeholder="请输入资讯标题" maxlength="100" autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容控制在2-100个字符。"  data-parsley-required="true" data-parsley-length="[2, 100]"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">发布者<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" name="publisher" class="form-control" placeholder="请输入资讯作者" maxlength="30" autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容控制在2-30个字符。"  data-parsley-required="true" data-parsley-length="[2, 30]"/>
                        </div>
                    </div>

                    <!--<div class="form-group">-->
                    <!--<label class="control-label col-md-2 col-sm-3">封面图片<i class="f-s-14 text-danger">*</i>&nbsp;:</label>-->
                    <!--<div class="col-md-9 col-sm-8">-->
                    <!--<input type="hidden" id="addFormPicPath" name="picPath" data-parsley-required="true">-->
                    <!--<div class="clickreply-image m-b-15"><img src="${imgRoot}default_image.gif"-->
                    <!--id="addFormPicImg" alt=""-->
                    <!--class="media-object viewImage"></div>-->
                    <!--<p class="text-info">封面图片尺寸要求宽度为360像素、高度为200像素；支持格式gif，jpg，png。</p>-->
                    <!--<span class="btn btn-sm btn-white fileinput-button"> <i class="fa fa-upload"></i> <span>文件上传</span>-->
                    <!--<input id="addFormPic" type="file" name="file" autocomplete="off" multiple>-->
                    <!--</span></div>-->
                    <!--</div>-->

                    <!--<div class="form-group">-->
                    <!--<label class="control-label col-md-2 col-sm-3">排序<i class="f-s-14 text-danger">*</i>&nbsp;:</label>-->
                    <!--<div class="col-md-9 col-sm-8">-->
                    <!--<input type="text" name="sortNo" class="form-control" placeholder="请输入排序" autocomplete="off" value="0" data-tip="tooltip" data-placement="auto" value="0" data-original-title="排序从0~999顺序排列，默认排序为0。" data-parsley-range="[0,999]"/>-->
                    <!--</div>-->
                    <!--</div>-->

                    <!--<div class="form-group">-->
                        <!--<label class="control-label col-md-2 col-sm-3">资讯内容&nbsp;:</label>-->
                        <!--<div class="col-md-9 col-sm-8"><script id="contnetAdd" style="width: 100%; height: 200px;"></script></div>-->
                    <!--</div>-->
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3"> 资讯内容<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                        <textarea id="contentAdd"  class="col-md-12 col-sm-8" name="content" maxlength="200" placeholder="请输入资讯内容">
                        </textarea>
                        </div>
                    </div>
                    <!--<div class="form-group no-border">-->
                    <!--<label class="control-label col-md-2 col-sm-3">附件图片&nbsp;:</label>-->
                    <!--<div class="col-md-9 col-sm-8">-->
                    <!--<input type="hidden" id="addFormUploadImage" name="upLoadImage">-->
                    <!--<div class="row article-pic" name="preview"></div>-->
                    <!--<span class="btn btn-sm btn-white fileinput-button" data-tip="tooltip" data-placement="auto" data-original-title="上传图片支持jpg/gif/png格式，大小不要超过2M。上传后可点击“插入”按钮将附件嵌入文本编辑器中。"> <i class="fa fa-upload"></i> <span>文件上传</span>-->
                    <!--<input id="addFormFile" type="file" name="file" autocomplete="off" multiple>-->
                    <!--</span> </div>-->
                    <!--</div>-->
                </form>
            </div>
            <div class="modal-footer"><a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a><a href="javascript:;" class="btn btn-success" data-loading-text="Loading..." nc-ajax-submit-target="addForm" nc-ajax-submit>确认提交</a></div>
        </div>
    </div>
</div>
<!-- ================== 结束新增资讯模态窗口 ================== -->
<!-- ================== 开始编辑资讯模态窗口 ================== -->
<div class="modal fade" id="editModal" tabindex="-1" role="dialog">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h4 class="modal-title"> 编辑资讯 <a class="btn btn-info btn-xs m-l-5" role="button" data-toggle="collapse" href="#OperationTipsEdit" aria-expanded="true" title="操作提示"><i class="fa fa-exclamation"></i> 提示 </a> </h4>
            </div>
            <div class="modal-body">
                <ul class="collapse in text-info p-b-10 p-l-15" role="tabpanel" id="OperationTipsEdit">
                    <li>资讯标题、资讯作者、资讯内容等为必填项，请根据表单提示信息正确输入选择。</li>
                </ul>
                <form class="form-horizontal form-bordered p-0" action="${adminRoot}systemNotice/json/edit" id="editForm" method="post" autocomplete="off" data-parsley-validate="true">
                    <input type="hidden" name="id" value="">
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">标题<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" name="title" class="form-control" placeholder="请输入资讯标题" maxlength="100" autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容控制在2-100个字符。" data-parsley-required="true" data-parsley-length="[2, 100]"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3">发布者<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                            <input type="text" name="publisher" class="form-control" placeholder="请输入资讯发布者"  maxlength="30"autocomplete="off" data-tip="tooltip" data-placement="auto" data-original-title="必填项，输入内容控制在2-30个字符。"  data-parsley-required="true" data-parsley-length="[2, 30]"/>
                        </div>
                    </div>
                    <!--<div class="form-group">-->
                        <!--<label class="control-label col-md-2 col-sm-3">资讯内容&nbsp;:</label>-->
                        <!--<div class="col-md-9 col-sm-8"><script id="contnetEditor" style="width: 100%; height: 200px;"></script></div>-->
                    <!--</div>-->
                    <div class="form-group">
                        <label class="control-label col-md-2 col-sm-3"> 资讯内容<i class="f-s-14 text-danger">*</i>&nbsp;:</label>
                        <div class="col-md-9 col-sm-8">
                         <textarea id="contentEdit"  class="form-control" name="content" maxlength="200" placeholder="请输入资讯内容">
                        </textarea>
                        </div>
                    </div>
                </form>
                <!-- 结束设置模块-->
            </div>
            <div class="modal-footer"><a href="javascript:;" class="btn btn-white" data-dismiss="modal">放弃操作</a><a href="javascript:;" class="btn btn-success" data-loading-text="Loading..." nc-ajax-submit-target="editForm" nc-ajax-submit>确认提交</a></div>
        </div>
    </div>
</div>
<!-- ================== 结束编辑资讯模态窗口 ================== -->
    <!-- ================== 开始页面级JavaScrip调用 ================== -->
    <script src="${pluginsRoot}bootstrap-wizard/js/bwizard.js"></script>
    <!-- 表单checkbox项 -->
    <script src="${pluginsRoot}bootstrap-switch/bootstrap-switch.min.js"></script>
    <!-- 日历控件 -->
    <script src="${pluginsRoot}/jquery.dtGrid/dependents/datePicker/WdatePicker.js" defer="defer"></script>
    <script src="${jsRoot}systemNotice/systemNotice.handle.js"></script>
    <!-- ================== 结束页面级JavaScrip调用 ================== -->
</@c.html>
